using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using amazingfishing.sprites;
using System.Diagnostics;

namespace amazingfishing.senes
{
    public class Fishing3 : Fishing
    {

        public Fishing3(Game1 game)
            : base(game)
        {
            pixelChangeperFrame = 10;
            frameCount = (2048 - 480) / pixelChangeperFrame;
            waterSpeed = new Vector2(15, 0);
            isFishDead = false;
        }

        protected override void LoadContent()
        {
            base.LoadContent();

            coast = Game.Content.Load<Texture2D>(@"images/coast");
            Texture2D boss = Game.Content.Load<Texture2D>(@"images/sprites/boss2");
            Texture2D wood1 = Game.Content.Load<Texture2D>(@"images/sprites/wood3");
            Texture2D wood2 = Game.Content.Load<Texture2D>(@"images/sprites/wood5");
            Texture2D stone = Game.Content.Load<Texture2D>(@"images/sprites/stone");
            Texture2D eddy = Game.Content.Load<Texture2D>(@"images/sprites/eddy");

            normalObjects.Add(new wood(wood1, new Vector2(100, 300), new Point(75, 50), new Point(10, 1), 8, new Vector2(1, 0)));
            normalObjects.Add(new wood(wood2, new Vector2(300, 500), new Point(100, 100), new Point(8, 1), 8, new Vector2(-1, 0)));
            normalObjects.Add(new wood(wood1, new Vector2(100, 150), new Point(75, 50), new Point(10, 1), 8, new Vector2(1, 0)));
            normalObjects.Add(new Stone(stone, new Vector2(240, 400)));
            normalObjects.Add(new Stone(stone, new Vector2(50, 200)));
            s_eddy = new Eddy(eddy, new Vector2(300, 200), new Point(100, 100), new Point(8, 1), 4);

            //protected Eddy s_eddy;


            Debug.WriteLine(normalObjects.Count);
        }

        public override void Update(GameTime gameTime)
        {
            s_eddy.Update(gameTime);
            base.Update(gameTime);
            
        }

        public override void Draw(GameTime gameTime)
        {
            

            base.Draw(gameTime);
            s_eddy.Draw(gameTime, spriteBatch);
        }
    }
}
